<?php

	include 'wp-includes/php/DBManager.class.php';

	$db = new DBManager ( 'localhost', 'root', '', 'iumus' );
	$query = "DELETE FROM messaggi WHERE id = ".$_GET['id'];
	$result = $db->executeQuery ( $query );
	
	header ( "Location: messages.php" );
	
?>